home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / reboot15.arc / REBOOT.DOC next >
Encoding:
Text File  |  1987-03-25  |  5.6 KB  |  147 lines

  1.              REBOOT.EXE    version 1.5  dtd 28 Mar 1987
  2.  
  3. PREPARED BY: Jon R. Millen
  4. ------------
  5.  
  6. REFERENCE:  DOS Manual Chapter 4 ( versions 2.1, 3.1) 
  7. ----------
  8.  
  9. PURPOSE:
  10. -----------
  11. The purpose of this tech note is to document the organization and 
  12. software  which  permits a user to reboot a PC using a  different 
  13. CONFIG.SYS file and, optionally, a different AUTOEXEC.BAT file.
  14.  
  15. STATEMENT OF THE PROBLEM:
  16. -------------------------
  17. During the PC "boot" process,  DOS looks for the CONFIG.SYS  file 
  18. in  the  root  directory  of the disk involved  in  the  boot. As 
  19. indicated in the reference manual,  the CONFIG.SYS file is simply 
  20. a  file which contains "instructions to DOS" relative to  how  to 
  21. organize the memory and which,  if any,  device drivers should be 
  22. installed. The  majority  of  machine configurations  are  fairly 
  23. stable  which  results  in a stable  CONFIG.SYS  file. In  stable 
  24. environments  there is no CONFIG.SYS problem. Many users  do  not 
  25. even  know they are using CONFIG.SYS.
  26.  
  27. However, over  time  two  things  have  occurred  which  tend  to 
  28. complicate the "stability" of a given installation, namely:
  29.  
  30.         1.)Software  functionality has been added to the machine 
  31.         using  "device  drivers" which must be installed at  boot 
  32.         time  via CONFIG.SYS. IBM's VIRTUAL DISK,  VDISK,is  an 
  33.         example of a pure software "add on".
  34.  
  35.         2.)The  hardware "add on" market has proliferated  at  a 
  36.         very  rapid  pace. Many of the products  are  integrated 
  37.         into  the  system  using  device drivers  which  must  be 
  38.         installed   via  CONFIG.SYS. The  recent  memory   boards 
  39.         RAMPAGE, from AST, and ABOVE BOARD, from INTEL, are  two 
  40.         examples.
  41.  
  42. The  problem  arises at installations where the user  desires  to 
  43. invoke   different   CONFIG.SYS   files, ie, different  machine 
  44. configurations, for  different purposes. The `manual' solution is 
  45. to  maintain a number of named configuration files  somewhere  on 
  46. disk  and  copy the desired file into the CONFIG.SYS file in  the 
  47. root directory and subsequently reboot. In some cases the problem
  48. extends to the autoexec.bat file also.
  49.  
  50. Aside  from the time involved in the manual copy  procedure,  the 
  51. root  directory of the disk is involved which presents a  certain 
  52. risk to the average user. (I have erased key files in the root by 
  53. accident on more than one occasion.)
  54.  
  55. The  desired goal is to present the user with a solution  to  the 
  56. the  CONFIG.SYS change problem which minimizes both the risk  and èthe time spent.
  57.  
  58. ONE SOLUTION:
  59. -------------
  60. To   address   the  CONFIG.SYS  problem, I  wrote   the   program 
  61. REBOOT. Written  in "C", REBOOT is currently under test  at  the 
  62. 8th Street Installation.
  63.  
  64. REBOOT GENERAL DESCRIPTION
  65.  
  66.         Program assumptions:
  67.             REBOOT  assumes that the various configuration  files 
  68.             all stored in a directory named:   \CONFIGS
  69.             The  configuration  files can be named  anything  the 
  70.             user chooses.  Egs:
  71.  
  72.                 STANDARD, BARE, ABOVE, RAMPAGE, IDEA
  73.  
  74.       Relative to configuration files, suffixes can be used but
  75.       they are optional:   Egs:
  76.       
  77.                           BARE.CFG , ABOVE.CFG  
  78.  
  79.         Program use:
  80.             1.)Execute a "reboot":
  81.  
  82.             When  the  user decides to use a  configuration  file 
  83.             different  than  the one used  last,  the  reboot  is 
  84.             accomplished using the command:
  85.  
  86.                 REBOOT configfilename
  87.  
  88.                 where  "configfilename" is the valid name of  any 
  89.                 configuration file in directory \CONFIGS.
  90.  
  91.                 Eg:  REBOOT STANDARD
  92.  
  93.             The program will copy the named program into the root 
  94.             directory renaming it CONFIG.SYS in the process. Upon 
  95.             completion  of  the  copy,the  program  initiates  a 
  96.             "warm" reboot of the machine.
  97.  
  98.             2.)Check available configuration files:
  99.  
  100.             When  the  user wants to check his/her  choices,  the 
  101.             command:
  102.  
  103.                 REBOOT 
  104.  
  105.             will display the names of the available configuration 
  106.             files.
  107.  
  108.         Note: The  configuration  file used to boot  the  machine 
  109.         will remain in effect until changed by the user.
  110.  
  111.  
  112. VERSION 1.5 
  113. -------------
  114. Version 1.5 added the possibility of also copying a corresponding
  115. batch file to serve as the "rebooted" autoexec.bat file.
  116.  
  117. In DOS terms:
  118. If a file with the prefix of the file named in the command and a
  119. suffix of .bat exists in directory \CONFIGS, prior to reboot such
  120. a file will be copied to the root directory renamed  AUTOEXEC.BAT.
  121.  
  122. The intentions of these naming conventions are:
  123.     1.  Maintain upward compatibility with REBOOT version 1.0.
  124.     2.  Make the use of a .bat file purely optional.
  125.     3.  Provide a "pairing" of names.
  126.  
  127. Examples of paired names that will work are:
  128.     RAMPAGE            ABOVE.CFN         BARE
  129.     RAMPAGE.BAT        ABOVE.BAT       (no corresponding .bat)
  130.  
  131.         Note: The  configuration  file used to boot  the  machine 
  132.         and the corresponding .bat file will remain in effect
  133.         until changed by the user.
  134.  
  135.  
  136. PROGRAM STATUS:
  137. ----------------
  138. REBOOT.EXE has been released to the public domain and may be used
  139. for any purpose whatsoever.
  140.  
  141.  
  142. QUESTIONS OR PROBLEMS:
  143. ----------------------èPlease direct any questions or problems to the author at the
  144. address below:
  145.                       60 E. 8th Street, Apt. 32 F
  146.                       New York, NY, 10003
  147.